#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

#include <string.h>
//编写代码，演示多个字符从两端移动，(中文字符：一个中文要占两个位置)
 //(创建两个同长数组，指针移动并替换)
int main() {
	char arr1[] = "Hello Word!";
	char arr2[] = "###########";
	int left = 0;
	int right = strlen(arr1) - 1;

	while (left<=right)
	{
		arr2[left] = arr1[left];
		arr2[right] = arr1[right];
		printf("%s\n", arr2);
		Sleep(1000); //睡眠一秒 每一秒 打印一次
		system("cls"); //清空屏幕
		left++;
		right--;
	}
	printf("%s\n", arr2);

	return 0;
}